package cc.aiee.paypal.model;

import cc.aiee.core.interfaces.PayJsonBeanInterface;
import cc.aiee.core.kit.KitJson;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
public class PayPalTransactionModel implements PayJsonBeanInterface {

	/**
	 * 付款方式随机数
	 */
	private String paymentMethodNonce;
	/**
	 * 收集设备数据 deviceDataFromTheClient
	 * <li>https://developers.braintreepayments.com/guides/advanced-fraud-management-tools/device-data-collection/ios/v4</li>
	 */
	private String deviceData;
	
	/**
	 * 金额(分)
	 */
	private Integer amount;
	
	/**
	 * 订单号
	 */
	private String orderNo;

	@Override
	public String toJson() {
		return KitJson.toJSONString(this);
	}

	@Override
	public String toJson(boolean prettyFormat, boolean ignoreNull) {
		return KitJson.toJSONString(this, prettyFormat, ignoreNull);
	}

}
